package com.ffapp.demo.bean;

import android.text.TextUtils;

import com.alibaba.fastjson.annotation.JSONField;
import com.amap.api.maps.model.LatLng;

public class UserSquadronListData extends BasisBean {

    /**
     *
     */
    private static final long serialVersionUID = 1L;


    /**
     * id : 15
     * createBy : system
     * createUserName : system
     * createTime : 2020-03-04 17:02:47
     * updateBy : system
     * updateUserName : system
     * updateTime : 2020-03-04 17:02:47
     * name : 前埔中队
     * address :  
     * phone : 5916119
     * longitude : 118.164032
     * latitude : 24.46643
     * areaName : 思明区
     * videoIds : 二楼走廊,xm_yqjk03_qianpu@xm.fj.xf_01;训练场,xm_yqjk03_qianpu@xm.fj.xf_03;训练塔,xm_yqjk03_qianpu@xm.fj.xf_05;车库大门,xm_yqjk03_qianpu@xm.fj.xf_07;大门口,xm_yqjk03_qianpu@xm.fj.xf_09;西侧围墙,xm_yqjk03_qianpu@xm.fj.xf_11;xm_yqjk03_qianpu@xm.fj.xf_13,xm_yqjk03_qianpu@xm.fj.xf_13;xm_yqjk03_qianpu@xm.fj.xf_15,xm_yqjk03_qianpu@xm.fj.xf_15;福建厦门前埔中队4G单兵_0,xm_qp_hp4g@fj.xf_00
     * deptOrder : 15
     * deptLevel : 1
     * parentId : 13
     * fullPath : ,0,13,15,
     * systemic : 1
     * remark : 十四中队
     * deleted : 0
     * assignDeptAdmin : null
     * assignDeptAdminName : null
     * deptLevelName : 主管中队
     */

    private String id;
    private String createBy;
    private String createUserName;
    private String createTime;
    private String updateBy;
    private String updateUserName;
    private String updateTime;
    private String name;
    private String address;
    private String phone;
    private double longitude;
    private double latitude;
    private String areaName;
    private String videoIds;
    private int deptOrder;
    private int deptLevel;
    private String parentId;
    private String fullPath;
    private String systemic;
    private String remark;
    private String deleted;
    private String assignDeptAdmin;
    private String assignDeptAdminName;
    private String deptLevelName;
    private String distance;   //距离中心点的距离，单位：米；注意：只有请求参数包含中心点经纬度时，才计算距离。

    private String deptId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getVideoIds() {
        return videoIds;
    }

    public void setVideoIds(String videoIds) {
        this.videoIds = videoIds;
    }

    public int getDeptOrder() {
        return deptOrder;
    }

    public void setDeptOrder(int deptOrder) {
        this.deptOrder = deptOrder;
    }

    public int getDeptLevel() {
        return deptLevel;
    }

    public void setDeptLevel(int deptLevel) {
        this.deptLevel = deptLevel;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    public String getSystemic() {
        return systemic;
    }

    public void setSystemic(String systemic) {
        this.systemic = systemic;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getAssignDeptAdmin() {
        return assignDeptAdmin;
    }

    public void setAssignDeptAdmin(String assignDeptAdmin) {
        this.assignDeptAdmin = assignDeptAdmin;
    }

    public String getAssignDeptAdminName() {
        return assignDeptAdminName;
    }

    public void setAssignDeptAdminName(String assignDeptAdminName) {
        this.assignDeptAdminName = assignDeptAdminName;
    }

    public String getDeptLevelName() {
        return deptLevelName;
    }

    public void setDeptLevelName(String deptLevelName) {
        this.deptLevelName = deptLevelName;
    }

    public String getDistance() {
        return distance;
    }

    public String getKm() {
        if(TextUtils.isEmpty(distance)){
            return "0";
        }
        double a = Double.valueOf(distance);
        double b = Math.rint(a/100)/10;
        return String.valueOf(b);
    }


    public void setDistance(String distance) {
        this.distance = distance;
    }

    @JSONField(serialize = false)
    public LatLng getLatlng() {
        LatLng latLng = new LatLng(latitude, longitude);
        return latLng;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

}
